package com.repository;

import com.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;

public interface UserRepository extends JpaRepository<User,Integer> {
    User findByUsername(@Param("username") String username);

    List<User> findByIsRecommend(@Param("isRecommend") Integer isRecommend);
}
